{% extends "base.html" %}

{% block title %}
    下属考勤管理
{% endblock %}

{% block head %}
    <h1 class="page-header">下属考勤管理</h1>
{% endblock %}

{% block content %}
    <div class="col-lg-12">
        <table class="table">
            <thead>
            <tr>
                <th>假条编号</th>
                <th>假条状态</th>
                <th>请假类型</th>
                <th>请假原因</th>
                <th>起始时间</th>
                <th>结束时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {% for o in Ad_list %}
            <tr>
                <td class="col-lg-1">{{ loop.index }}</td>
                <td class="col-lg-1">{{ o.status }}</td>
                <td class="col-lg-1">{{ o.a_type }}</td>
                <td class="col-lg-3">申请调休{{ o.days }}天</td>
                <td class="col-lg-2">{{ o.start_time }}</td>
                <td class="col-lg-2">{{ o.end_time }}</td>
                <td class="col-lg-2">
                    <a href="/update_attendance_subordinate/1/{{ o.id }}" class="btn btn-default">通过</a>
                    <a href="/update_attendance_subordinate/2/{{ o.id }}" class="btn btn-default">驳回</a>
                </td>
            </tr>
            {% endfor %}


            </tbody>
        </table>
    </div>
{% endblock %}